﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Aplikacja_PostgreSQL
{
    public class DataCzas
    {
        private static string h, m, s;
        public static String GetTime()
        {
            if (DateTime.Now.Hour < 10)
                h = "0" + DateTime.Now.Hour.ToString();
            else
                h = DateTime.Now.Hour.ToString();
            if (DateTime.Now.Minute < 10)
                m = "0" + DateTime.Now.Minute.ToString();
            else
                m = DateTime.Now.Minute.ToString();
            if (DateTime.Now.Second < 10)
                s = "0" + DateTime.Now.Second.ToString();
            else
                s = DateTime.Now.Second.ToString();
            return h + ":" + m + ":" + s + " ";
        }
    }
}
